/**
 * 
 */
package com.wsd.service.impl;

import java.util.List;

import com.wsd.bean.Message;
import com.wsd.dao.MessageDaoInterface;
import com.wsd.service.MessageService;

/**
 * @author Administrator
 *
 */
public class MessageServiceImpl implements MessageService {
	private MessageDaoInterface messageDAO;

	public MessageDaoInterface getMessageDAO() {
		return messageDAO;
	}
	public void setMessageDAO(MessageDaoInterface messageDAO) {
		this.messageDAO = messageDAO;
	}
	/* (non-Javadoc)
	 * @see com.wsd.service.MessageService#findAll(int, int)
	 */
	public List<Message> findAll(int start, int limit) {
		return messageDAO.findAll(start,limit);
	}
	public int findAllCount() {
		return messageDAO.findAllCount();
	}
	public void deleteById(int id) {
		messageDAO.deleteById(id);
	}
	/* (non-Javadoc)
	 * @see com.wsd.service.MessageService#findById(java.lang.Integer)
	 */
	public Message findById(Integer id) {
		return messageDAO.findById(id);
	}
	/* (non-Javadoc)
	 * @see com.wsd.service.MessageService#saveReplay(com.wsd.bean.Message)
	 */
	public void saveReplay(Message replay) {
		messageDAO.save(replay);
	}
}
